package net.apps.core;

public interface Connection {

	/**
	 * Returns local address of this connection
	 * @return local address
	 */
	Addr getLocalAddr();
	/**
	 * Returns remote address of this connection
	 * @return remote address
	 */
	Addr getRemoteAddr();
	
	/**
	 * Get channel by it's identifier 
	 * @param id channel identifier
	 * @return channel instance
	 */
	Channel getChannel(int id);
}
